package com.xunqi.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xunqi.common.utils.PageUtils;
import com.xunqi.product.entity.AttrEntity;
import com.xunqi.product.entity.ProductAttrValueEntity;
import com.xunqi.product.vo.AttrGroupRelationVo;
import com.xunqi.product.vo.AttrRespVo;
import com.xunqi.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author hjy
 * @email hjy@gmail.com
 * @date 2020-06-16 11:57:38
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params, Long catelogId, String type);

    void saveAttr(AttrVo attr);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelation(Long attrGroupId);

    void deleteRelation(List<AttrGroupRelationVo> vos);

    PageUtils getNoRelation(Map<String, Object> params, Long attrGroupId);

}

